package edu.tongji.engine.common;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

public class Log {

	 public Logger loger;
	 private static Log log;
	 
	 private Log(){
		 
	  loger=Logger.getLogger(this.getClass());
	  
	  PropertyConfigurator.configure("resource\\log4j.properties");
	 }
	 
	 public static Log getLoger()
	 {
	  if(log!=null)
	   return log;
	  else
	   return new Log();
	 }

}
